<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/6/25
  Time: 12:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" import="bean.Bookinfo" %>
<html>
<head>
    <title></title>
</head>
<body>

<% request.setCharacterEncoding("utf-8");
    Bookinfo bi=(Bookinfo)request.getAttribute("bi");
%>
<center>
    <form action="update.do" method="post">
        <input type="hidden" name="id" value="<%= bi.getId()%>">
        <table>
            <h2><caption>修改信息</caption></h2>
            <tr><th>书名</th>
                <td><input type="text" value="<%= bi.getName()%>" name="name"> </td>
            </tr>
            <tr><th>作者</th>
                <td><input type="text" value="<%= bi.getAuthor()%>" name="author"> </td>
            </tr>
            <tr><th>出版社</th>
                <td><input type="text" value="<%= bi.getPress()%>" name="press"> </td>
            </tr>
            <tr><th>出版日期</th>
                <td><input type="text" value="<%= bi.getDate()%>" name="date"> </td>
            </tr>
            <tr><td colspan="2" align="center"><input type="submit" value="提交"><input type="reset" value="重置"></td>
            </tr>
        </table>
    </form>
</center>
</body>
</html>

